package com.example.demo.event;

import com.example.demo.domain.dto.User;
import lombok.Data;
import lombok.Getter;

import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @Description : 自定义用户注册事件
 * @Author : Bruce Lee
 * @CreateTime : 2024/3/27
 */


@Getter
@Setter
public class UserRegisterEvent extends ApplicationEvent {

    private User user;


    public UserRegisterEvent(Object source, User user) {
        super(source);
        this.user = user;
    }
}
